/**
 * 
 */
let mibao = new Vue({
	el:'#mibao',
	data:{
		uid:'',
		mibaoQ:'',
		mibaoA:''
	},
	methods:{
		submitA(uid,mibaoQ,mibaoA){
			let data = new FormData();
			data.append("uid",uid);
			data.append("upasswordexpre",mibaoQ);
			data.append("upasswordanswer",mibaoA);
			axios.post('/usert/findUpwdBymibao',data)
				 .then(resp=>{
					console.log(typeof resp.data);
					if(typeof resp.data==='string'){
						this.$message("密保验证成功");
						window.location.href="http://localhost:8082/usert/user/resetpassword?uid="+this.uid+"&uemail="+resp.data;
					}
					else{
						console.log(resp.data);
					}
					
				})
				 .catch(error=>{
					this.$message.error(error);
				});
		},
		getMibao(uid){
			let data = new FormData();
			data.append("uid",uid);
			axios.post('/usert/getMibao',data)
				 .then(resp=>{
					this.mibaoQ = resp.data;
					
				})
				 .catch(error=>{
					this.$message.error(error);
				});
		}
	}
});